<!--左侧主要内容 -->
  <div class="sidebar">
    <div class="qlink"> 
    	<a href="<?php echo edp_href_link(PAGENAME_ADD_SHOP);?>">
    		<img src="<?php echo IMAGE_DIR; ?>index/btn_add_shop.gif" alt="添加店铺" />
    	</a> 
    	<a href="<?php echo edp_href_link(PAGENAME_USER_LIST_CREATE);?>">
    		<img src="<?php echo IMAGE_DIR; ?>index/btn_add_list.gif" alt="添加评单" />
    	</a> 
    	<a href="<?php echo edp_href_link(PAGENAME_HELP, 'subpage=201');?>">
    		<img src="<?php echo IMAGE_DIR; ?>index/btn_review.gif" alt="添加点评" />
    	</a> 
    	<a href="<?php echo edp_href_link(PAGENAME_LOGIN);?>">
    		<img src="<?php echo IMAGE_DIR; ?>index/btn_login.gif" alt="快速登录"/>
    	</a> 
    </div>
    <!--四个按钮 -->
    
<?php
 	LoadSubpage( $page_base, "notice" ); 
 ?>
    
    <div class="coupon">
      <div class="to morelink"><a href="<?php echo edp_href_link(PAGENAME_COUPON_SUMMARY);?>">更多>></a></div>
      <!--头部背景 -->
      <div class="mid">
        <ul>
<?php
	if($coupons) 
	{
		$printN=1;
		foreach($coupons as $coupon)
		{
?>
			<li>
				<a href="<?php echo edp_href_link(PAGENAME_COUPON_INFO, 'couponID='.$coupon['coupon_id']);?>";>
<?php 
				if($printN<=2)
				{
?>
					<span class="redfont">
<?php
					echo $coupon['coupon_name'];
					echo '</span>';
				}				
				else
				{
					echo $coupon['coupon_name'];
				}
?>
				</a>
			</li>
<?php
			$printN++;
		}
	}
?>
        </ul>
      </div>
      <!--优惠内容 -->
      <div class="bot"> </div>
      <!--底部背景 --> 
    </div>
    
    
    <!-- 优惠券-->
    <div class="emoney">
      <div class="to morelink"><a class="morelink" href="<?php echo edp_href_link(PAGENAME_GIFT_SUMMARY);?>">更多>></a></div>
      <!--头部背景 -->
      <div class="mid">
        <ul>
        <?php
	if($gifts) 
	{
		$printN=1;
		foreach($gifts as $gift)
		{
?>
			<li>
				<a href="<?php echo edp_href_link(PAGENAME_GIFT_INFO, 'gid='.$gift['gift_id']);?>";>
<?php 
				if($printN<=2)
				{
?>
					<span class="redfont">
<?php
					echo $gift['gift_name'];
					echo '</span>';
				}				
				else
				{
					echo $gift['gift_name'];
				}
?>
				</a>
			</li>
<?php
			$printN++;
		}
	}
?>
        </ul>
      </div>
      <!--e币换礼内容 -->
      <div class="bot"> </div>
      <!--底部背景 --> 
    </div>
    <!-- e币换礼-->
  

	<div class="rank_box rank_box_score" >
		<ul>
  			<li class="menuOn" id="tab3_t1">店铺</li>
  			<li class="menuNo" id="tab3_t2">商城</li>
  		</ul>
  		
  	<div id="rank_tab3_t1" class="slidingList">  
<?php
	if($BestScoreShops) 
	{
		$printN=1;
		foreach($BestScoreShops as $shop)
		{
?>
			<p>
				<span class="item_rank <?php echo $printN < 4?'h1':'h2'; ?>"><?php echo $printN; ?></span>
				<a href="<?php echo edp_href_link(PAGENAME_SHOP_INFO, 'sid='.$shop['id']);?>">
<?php 
				if($printN<=3)
				{
?>
					<span class="redfont">
<?php
				}
				secho($shop['shop_name']);
								
				if($printN<=3)
				{
					echo '</span>';
				}
?>
				</a>
			</p>
<?php
			$printN++;
		}
	}
?>
  </div>
  
  <div id="rank_tab3_t2" class="slidingList_none">
<?php
	if($BestScoreMalls) 
	{
		$printN=1;
		foreach($BestScoreMalls as $shop)
		{
?>
			<p>
				<span class="item_rank <?php echo $printN < 4?'h1':'h2'; ?>"><?php echo $printN; ?></span>
			
				<a href="<?php echo edp_href_link(PAGENAME_SHOP_INFO, 'sid='.$shop['id']);?>">
<?php 
				if($printN<=3)
				{
?>
					<span class="redfont">
<?php
				}
 
				secho($shop['shop_name']);
				if($printN<=3)
				{
					echo '</span>';
				}
?>
				</a>
			</p>
<?php
			$printN++;
		}
	}
?>
		</div>
	</div> 
    <!--口碑榜-->
    
    
    <div class="rank_box rank_box_rate">  
    	<ul>
  			<li class="menuOn" id="tab4_t1">店铺</li>
  			<li class="menuNo" id="tab4_t2" >商城</li>
		</ul>
  		<div id="rank_tab4_t1" class="slidingList"> 
<?php
	if($BestRateShops) 
	{
		$printN=1;
		foreach($BestRateShops as $shop)
		{
?>
			<p>
			
			<span class="item_rank <?php echo $printN < 4?'h1':'h2'; ?>"><?php echo $printN; ?></span>
			
		
				<a href="<?php echo edp_href_link(PAGENAME_SHOP_INFO, 'sid='.$shop['id']);?>">
<?php 
				if($printN<=3)
				{
?>
					<span class="redfont">
<?php
				}

				secho($shop['shop_name']);
				if($printN<=3)
				{
					echo '</span>';
				}
?>
				</a>
				
			</p>
<?php
			$printN++;
		}
	}
?>
  		</div>
  		<div id="rank_tab4_t2" class="slidingList_none">
<?php
	if($BestRateMalls) 
	{
		$printN=1;
		foreach($BestRateMalls as $shop)
		{
?>
			<p>
			<span class="item_rank <?php echo $printN < 4?'h1':'h2'; ?>"><?php echo $printN; ?></span>
			
				<a href="<?php echo edp_href_link(PAGENAME_SHOP_INFO, 'sid='.$shop['id']);?>">
<?php 
				if($printN<=3)
				{
?>
					<span class="redfont">
<?php
				}

				secho($shop['shop_name']);
				if($printN<=3)
				{
					echo '</span>';
				}
?>
				</a>
			</p>
<?php
			$printN++;
		}
	}
?>
  		</div>
  	</div>
    <!--性价比榜-->
    
    <div class="rank_box  rank_box_ser">
    	<ul>
  			<li class="menuOn" id="tab5_t1" >店铺</li>
  			<li class="menuNo" id="tab5_t2">商城</li>
		</ul>
  		<div id="rank_tab5_t1" class="slidingList">
<?php
	if($BestServiceShops) 
	{
		$printN=1;
		foreach($BestServiceShops as $shop)
		{
?>
			<p>
				<span class="item_rank <?php echo $printN < 4?'h1':'h2'; ?>"><?php echo $printN; ?></span>
				<a href="<?php echo edp_href_link(PAGENAME_SHOP_INFO, 'sid='.$shop['id']);?>">
<?php 
				if($printN<=3)
				{
?>
					<span class="redfont">
<?php
				}

				secho($shop['shop_name']);	
				if($printN<=3)
				{
					echo '</span>';
				}
?>
				</a>
			</p>
<?php
			$printN++;
		}
	}
?>
  	</div>
  	<div id="rank_tab5_t2" class="slidingList_none">
<?php
	if($BestServiceMalls) 
	{
		$printN=1;
		foreach($BestServiceMalls as $shop)
		{
?>
			<p>
			
				<span class="item_rank <?php echo $printN < 4?'h1':'h2'; ?>"><?php echo $printN; ?></span>
				<a href="<?php echo edp_href_link(PAGENAME_SHOP_INFO, 'sid='.$shop['id']);?>">
<?php 
				if($printN<=3)
				{
?>
					<span class="redfont">
<?php
				}

				secho($shop['shop_name']);
				if($printN<=3)
				{
					echo '</span>';
				}
?>
				</a>
			</p>
<?php
			$printN++;
		}
	}
?>
  	</div>
  </div>
    <!--服务态度-->
    
  <div class="user_rank">
  	<div class="top strong">点评达人 </div>
  	<div class="mid">
<?php
	if($popularUsers) 
	{
		$printN=1;
		foreach($popularUsers as $user)
		{
?>
			<div class="dr">
  				<div class="tu">
  					<a href="<?php echo edp_href_link(PAGENAME_USER_INFO,'uid='.$user['id'])?>">
  						<img class="thumbImage" src="<?php secho(EdpGetAvatarUrl($user['logo_path'])); ?>" alt="<?php echo $user['nick'];?>用户的头像" />
  					</a>
  				</div>
          		<div class="zi"> 
          			<a href="<?php echo edp_href_link(PAGENAME_USER_INFO,'uid='.$user['id'])?>">
          			<?php echo $user['nick'];?>
          			</a>
          			
          			<span class="<?php echo getUserRankClass($user['contribution']); ?>"></span>
          			
           		 	点评：<?php echo $user['review_count'];?> 
           	</div>
           	<div class="num num<?php echo $printN; ?>">
           	</div>
          <!--编号 --> 
        </div>
<?php
			$printN++;
		}
	}
?>
      </div>
      <!--点评达人内容 -->
      <div class="bot"> </div>
      <!--底部背景 --> 
      
    </div>
    <!--点评达人--> 
 
        <div class="ad_pic">
        </div>
            
  </div>
  <!--右侧主要内容--> 
